package com.qst.survey.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;

/**
 * @Date: 2021/3/17 13:51
 * @Description:存储用户答题的实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_reply")
public class UserReply {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; //id主键
    private Integer questionId; //问卷id
    private Integer userId; //用户id
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;  //创建时间
    @TableField(exist = false)
    private Question question;//用户回答的问卷
}
